package ch4;

import java.util.Scanner;

public class Zxf8 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("输入会员积分");
        int a=in.nextInt();
        if (a>=8000){
            System.out.println("获得折扣：6折");
        }else if (a>=4000){
            System.out.println("获得折扣：7折");
        }else if (a>=2000){
            System.out.println("获得折扣：8折");
        }else if (a<2000&&a>=0){
            System.out.println("获得折扣：9折");
        }else {
            System.out.println("输入错误！");
        }
    }
}
